package com.williambucciero.mobilemuseum;

import com.williambucciero.mobilemuseum.R;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class InitialSetupScreen extends Activity
implements OnClickListener{
		private DebugReporter reporter;
		
	    @Override
	    protected void onCreate(Bundle savedInstanceState) {
			super.onCreate(savedInstanceState);
	    	reporter = new DebugReporter(this);
	        setContentView(R.layout.setup_screen);
	        init();
	    }

	    private void init(){
	    	Button test = (Button)findViewById(R.id.startButton);
	    	test.setOnClickListener(this);
	    }
	    
		@Override
		public void onClick(View v) {
			BackgroundAlarm ba = new BackgroundAlarm(this);
			
			ba.fireOneTimeAlarm();
			reporter.writeToFile("ISS: Firing one time alarm.");
			ba.fireRepeatingAlarm();
			reporter.writeToFile("ISS: Firing repeating alarm.");
			finish();
		}
}
